home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Technical Docs / Apple II Technical Notes / Technical Notes (Text) / GSOS / TN.GSOS.010 < prev   
Encoding:
Text File  |  1990-01-09  |  1.7 KB  |  40 lines  |  [TEXT/pdos]

  1. Apple II
  2. Technical Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6.  
  7. GS/OS
  8. #10:    How Applications Find Their Files
  9.  
  10. Written by:    Dave Lyons                                        January 1990
  11.  
  12. This Technical Note explains how applications should find configuration and 
  13. other application-related files.
  14. _____________________________________________________________________________
  15.  
  16. When an application is launched, GS/OS sets prefix 9 to the application's 
  17. parent directory.  It also sets prefix 1 to the same directory if the length 
  18. of the pathname is within a 64-character limit.  It does not set prefix 0 to 
  19. any special value.
  20.  
  21. If your application uses a partial pathname and depends upon prefix 0 to find 
  22. files at the same directory level, it may be working by accident (prefix 0 is 
  23. accidently set to the right directory), and sooner or later it won't work.
  24.  
  25. If your application needs to load a file named TitleScreen, the best way is to 
  26. use the pathname 9:TitleScreen.  If you just use TitleScreen, you are using 
  27. prefix 0, and you may or may not be looking in the right directory.
  28.  
  29. Files storing user-specific data should be stored in the at sign (@) prefix--
  30. this is just like prefix 9, except that it is set to the user's user folder on 
  31. an AppleShare server if the application was launched from a server.  Use 
  32. @:MySettings rather than 9:MySettings or MySettings.  (If you want to retrieve 
  33. the value of the @ prefix, you can call ExpandPath on the pathname "@:".)  
  34. Note that the @ prefix was introduced in System Software 5.0.
  35.  
  36.  
  37. Further Reference
  38. _____________________________________________________________________________
  39.   o  GS/OS Reference
  40.